import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect:'/home'
  },
  {
    path: '/home',
    name: 'home',
    meta: { title: '首页' },
    component: () => import('../views/rightMain/content/Home.vue')
  },
  {
    path: '/testA',
    name: 'testA',
    meta: { title: '企业管理' },
    component: () => import('../views/rightMain/content/TestA.vue')
  },
  {
    path: '/testB',
    name: 'testB',
    meta: { title: '财务管理' },
    component: () => import('../views/rightMain/content/TestB.vue')
  }
]

const router = new VueRouter({
  linkActiveClass:'selected',
  routes
})

export default router
